package com.bluesky.drcp.persistence.dao.hibernate;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.bluesky.drcp.business.GlobalVariable;
import com.bluesky.drcp.persistence.dao.GlobalVariableDao;

public class GlobalVariableDaoImpl extends HibernateDaoSupport implements GlobalVariableDao {

	public GlobalVariable get(String id) {
		return (GlobalVariable)getHibernateTemplate().get(GlobalVariable.class, id);		
	}

	public void saveOrUpdate(GlobalVariable o) {
		getHibernateTemplate().saveOrUpdate(o);
		
	}

	public void delete(String id) {
		
		GlobalVariable o =get(id);
		getHibernateTemplate().delete(o);
		
	}

}
